<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function goturegister() {
            window.location.href="${pageContext.request.contextPath}/register.jsp";
        }
    </script>
</head>
<body>
<form action="${pageContext.request.contextPath}/LoginServlet">
    用户名<input type="text" name="username"><br>
    密码&nbsp;&nbsp;<input type="password" name="password"><br>
    <input type="submit" value="登录"> <button type="button" onclick="goturegister()" >注册</button>
</form>
<strong>${sessionScope.msg}</strong>



</body>
</html>
